<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [81, 82, 83, 98, 59];
        for (let i = 0; i < arr.length; i++) {
            console.log("第" + (i + 1) + "位同学的分数是：" + arr[i]);
        }
        console.log("数组长度为：" + arr.length);
    </script>
</body>
</html>